package com.alpesressources.comexpert.util;

import javax.xml.bind.annotation.adapters.XmlAdapter;

import com.alpesressources.comexpert.bo.response.ResponseObject.EnumResult;


public class EnumResultAdapter extends XmlAdapter<String, EnumResult> {
	@Override
	public String marshal(EnumResult v) throws Exception {
		String ret = null;
		try {
			ret = v.getValue();
		} catch (Exception e) {
		}
		return ret;
	}

	@Override
	public EnumResult unmarshal(String v) throws Exception {
		return EnumResult.fromString(v);
	}

}
